package com.zh.mp.demo.modules.demo.service;

import com.baomidou.mybatisplus.core.conditions.AbstractWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zh.mp.demo.modules.demo.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.sql.SQLException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2021-09-27
 */
public interface IUserService extends IService<User> {

    User getById(Long id);

    int insert(User user);

    User updateUser(User user);

    boolean removeById(Long id);

    Page<User> pageList(int pageSize, int limit, AbstractWrapper wrapper);

    Page<User> pageList(int pageSize, int limit);

    User queryOne(AbstractWrapper wrapper);
}
